import { createApp } from 'vue'
import App from './App.vue'
import {createPinia} from 'pinia'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import '@/assets/styles/index.scss' // global css
// svg图标
import 'virtual:svg-icons-register'
// import SvgIcon from '@/components/SvgIcon'
import SvgIcon from "@/components/SvgIcon/index.vue";
import elementIcons from '@/components/SvgIcon/svgicon'

import router from "@/router/screen";


const appIns = createApp(App)

appIns.use(elementIcons)
appIns.component('svg-icon', SvgIcon)
appIns.use(ElementPlus, {
  locale: zhCn,
})

    .use(router)
    .use(createPinia())
    .mount('#app')
